from django.conf.urls import url

from booktest import views_自己实现

urlpatterns = [
    url(r'^books/$', views_自己实现.BookListView.as_view()),
    url(r'^books/(?P<id>\d{1,3})/$', views_自己实现.BookDetailView.as_view())
]